from django.urls import path

from . import views

urlpatterns = [
    path('', views.data_index_view, name="data_index"),
    path('list/', views.data_list_view, name='data_list'),
    path('answer_list/', views.answer_list_view, name='answer_list'),
    path('parameter_answer_list/', views.param_answer_list_view, name='parameter_answer_list'),
    path('parameter_list/', views.param_list_view, name='parameter_list'),

    path('validate/<str:data_type>/<str:entry_id>/<str:old_status>', views.reverse_validity, name='reverse_validity'),

    path('weight/<str:model_id>/', views.WeightCollectView.as_view(), name='weight'),
    path('answer/<str:instance_id>/', views.get_criteria_list_view, name='criteria_list'),
    path('answer/<str:instance_id>/<str:criterion_id>', views.AnswerCollectView.as_view(), name='answer'),
    path('questionnaire/<str:instance_id>/', views.create_questionnaire, name='create_questionnaire')
]
